home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / pmake / doc / Makefile < prev    next >
Encoding:
Makefile  |  1990-12-11  |  1.1 KB  |  40 lines

  1. # $Header: /sprite/src/cmds/pmake/doc/RCS/Makefile,v 1.3 90/12/10 17:06:47 kupfer Exp $
  2.  
  3. LOCALS        = tutorial.ms tutorial.psc \
  4.                   pmake.mansp pmake.psc \
  5.           Lst.mansp Lst.psc Makefile makefile tmac.ansp \
  6.                   cctrl.8 customs.8 importquota.8 reginfo.1
  7.  
  8. SUBDIRS        = index ex1 ex2 customs
  9.  
  10.  
  11. tutorial.t    : index/tmac.index tutorial.ms 
  12.     ditroff -Plw -ms -t $(.ALLSRC) > tut.temp
  13.     (cd index; make index)
  14.     -index/index -Plw -t tut.temp > $(.TARGET)
  15.     rm -f tut.temp index/index
  16.  
  17. print         : tutorial.t
  18.     lpr -Plw -h -n tutorial.t
  19.  
  20. package        ::
  21.     if [ ! -d $(PKGDIR) ]; then
  22.         mkdir $(PKGDIR)
  23.     fi
  24.     cp $(LOCALS) $(PKGDIR)
  25.     for i in $(SUBDIRS); do
  26.         (cd $i; $(MAKE) "PKGDIR=$(PKGDIR)/$i" package)
  27.     done
  28.  
  29. # This was the entry for "package" in "makefile".  Don't ask me what
  30. # the difference is between this one and the other "package".  All I
  31. # know is that having both a Makefile and a makefile is seriously
  32. # demented.    -kupfer
  33.  
  34. package_other    : 
  35.     -mkdir $(PKGDIR)
  36.     -mkdir $(PKGDIR)/index
  37.     cp *.mansp *.ansp *.ms *.psc Makefile makefile $(PKGDIR)
  38.     cp index/tmac.index index/index.c index/Makefile index/README \
  39.             $(PKGDIR)/index
  40.